<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<link href="__VIEW__/css/style1.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" href="__STATIC__/bootstrap/css/bootstrap.min.css" />
		<link rel="stylesheet" href="__STATIC__/css/hdjs.css" />
		<script src="__STATIC__/js/jquery-1.7.2.min.js"></script>
		<script src="__STATIC__/js/hdjs.min.js"></script>
		<script>
    function delAddr(reid) {
        hd_modal({
            width: 400,// 宽度
			 height: 200, //高度
				title: '提示', //标题
				content: '您确定要删除这个收货地址吗?', //提示信息
				button: true, //显示按钮
				button_success: "确定", //确定按钮文字
				button_cancel: "关闭", //关闭按钮文字
				timeout: 0, //自动关闭时间 0：不自动关闭
				shade: false, //背景遮罩
				shadeOpacity: 0.9, //背景透明度
				success: function() { //点击确定后的事件
					location.href="__MODULE__/ReceivAddr/delReceivAddr/reid/"+reid;
				},
				cancel: function() { //点击关闭后的事件
				}
			});
			}
		</script>
		<style>
			.hd-page span {
				color: black !important;
			}
		</style>

		<script type="text/javascript">
			$(document).ready(function() {
				//$(".click").click(function(){
				//$(".tip").fadeIn(200);
				//});
				//
				//$(".tiptop a").click(function(){
				//$(".tip").fadeOut(200);
				//});
				//
				//$(".sure").click(function(){
				//$(".tip").fadeOut(100);
				//});
				//
				//$(".cancel").click(function(){
				//$(".tip").fadeOut(100);
				//});
			});
		</script>

	</head>

	<body>

		<div class="place">
			<span>位置：</span>
			<ul class="placeul">
				<li><a href="#">首页</a>
				</li>
				<li><a href="#">会员管理</a>
				</li>
				<li><a href="#">会员列表</a>
				</li>
				<li><a href="#">收货地址</a>
				</li>
				<li>{$hd.get.username} 的收货地址</li>
			</ul>
		</div>

		<div class="rightinfo">

			<div class="tools">

				<ul class="toolbar">
					<li class="click"><a href="__CONTROLLER__/addReceiveAddr/uid/{$hd.get.uid}/username/{$hd.get.username}"><span><img src="__VIEW__/images/t01.png" /></span>添加收货地址</a>
					</li>
					<!--<li class="click"><a href="{|U:'addAdmin'}"><span><img src="__VIEW__/images/t01.png" /></span>添加后台用户</a></li>-->

					<!--<li class="click"><span><img src="__VIEW__/images/t02.png" /></span>修改</li>
        <li><span><img src="__VIEW__/images/t03.png" /></span>删除</li>-->
				</ul>

				<ul class="toolbar1">
					<!--<li><span><img src="__VIEW__/images/t05.png" /></span>设置</li>-->
				</ul>

			</div>

			<table class="tablelist">
				<thead>
					<tr>
						<th>地址ID<i class="sort"><img src="__VIEW__/images/px.gif" /></i>
						</th>
						<th>收货人</th>
						<th>详细地址</th>
						<th>联系电话</th>
						<th>邮编</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<foreach from="$addrs" key="$key" value="$val">
						<tr>
							<td>{$val.reid}</td>
							<td>{$val.re_name}</td>
							<td>{$val.address}</td>
							<td>{$val.re_phone}</td>
							<td>{$val.re_zipcode}</td>
							<td><a href="__MODULE__/ReceivAddr/editReceivAddr/reid/{$val.reid}">修改</a> <a href="javascript:delAddr({$val.reid})" class="tablelink">删除</a>
							</td>
						</tr>
					</foreach>

				</tbody>
			</table>
			<!--<div class="hd-page"> 
   		{$page}
  	</div>-->
			<!--<div class="pagin">-->

			<!--<div class="message">共<i class="blue">1256</i>条记录，当前显示第&nbsp;<i class="blue">2&nbsp;</i>页</div>
        <ul class="paginList">
        <li class="paginItem"><a href="javascript:;"><span class="pagepre"></span></a></li>
        <li class="paginItem"><a href="javascript:;">1</a></li>
        <li class="paginItem current"><a href="javascript:;">2</a></li>
        <li class="paginItem"><a href="javascript:;">3</a></li>
        <li class="paginItem"><a href="javascript:;">4</a></li>
        <li class="paginItem"><a href="javascript:;">5</a></li>
        <li class="paginItem more"><a href="javascript:;">...</a></li>
        <li class="paginItem"><a href="javascript:;">10</a></li>
        <li class="paginItem"><a href="javascript:;"><span class="pagenxt"></span></a></li>
        </ul>-->
			<!--</div>-->

			<div class="tip">
				<div class="tiptop"><span>提示信息</span>
					<a></a>
				</div>

				<div class="tipinfo">
					<span><img src="__VIEW__/images/ticon.png" /></span>
					<div class="tipright">
						<p>您是否确定要删除这个分类吗 ？</p>
						<cite>如果是请点击确定按钮 ，否则请点取消。</cite>
					</div>
				</div>

				<div class="tipbtn">
					<input name="" type="button" class="sure" value="确定" />&nbsp;
					<input name="" type="button" class="cancel" value="取消" />
				</div>

			</div>

		</div>

	</body>

</html>